package com.example.configdemo.facade;

public class FacadeClient {
    private Light hallLight= new HallLight();
    private Light bedRoomLight= new BedRoomLight();
    private Light livingRoomLight= new LivingRommLight();

    public void allLightOn(){
        hallLight.on();
        bedRoomLight.on();
        livingRoomLight.on();
    }
    public void allLightOff(){
        hallLight.off();
        bedRoomLight.off();
        livingRoomLight.off();
    }
}
